<template>
  <el-image class="img-container" :src="src">
    <template slot="error" :src="src" class="image-slot">
      <img src="./1.jpeg" alt="">
    </template>
  </el-image>
</template>

<script>
export default {
  name: 'ImageHolder',
  props: {
    src: {
      type: String,
      default: ''
    }
  }
}

</script>

<style scoped lang="scss">
.img-container {
  border-radius: 50%;

  img {
    width: 100%;
  }
}
</style>
